Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug that caused serialized FITS tables to be duplicated #411

Merged
merged 2 commits into from
Dec 14, 2017

Conversation

drdavella
Copy link
Contributor

@drdavella drdavella commented Dec 13, 2017

This fixes #404. The bug occurred specifically in the case where the ASDF file was embedded inside an HDU in a FITS file.

@drdavella drdavella added the bug label Dec 13, 2017
@drdavella drdavella added this to the v1.4.0 milestone Dec 13, 2017
@drdavella drdavella self-assigned this Dec 13, 2017
@stsci-bot
Copy link

stsci-bot bot commented Dec 13, 2017

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

When working with ASDF embedded in FITS, arrays that are contained in
other FITS HDUs should not be duplicated in the ASDF HDU. This was
working properly for plain ndarrays, but it was not working for FITS
tables.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 95.162% when pulling 1fc1294 on drdavella:fix-fits-table into e8e57d2 on spacetelescope:master.

Copy link
Contributor

@bernie-simon bernie-simon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good to me. Go ahead and merge.

@drdavella drdavella merged commit 63c11ff into asdf-format:master Dec 14, 2017
@drdavella drdavella deleted the fix-fits-table branch December 14, 2017 16:33
@bernie-simon
Copy link
Contributor

The change to fits_embed.py fixes the binary table duplication problem in my test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fits_embed inlines binary tables
4 participants